package com.fas.system.mapper;

import com.fas.system.domain.vo.DateStatisticsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HomePageMapper {

    List<DateStatisticsVo> getLatest7daysAlarmLines(@Param("deptId") Integer deptId,@Param("alarmAck") Integer alarmAck,
                                                    @Param("cooperationCompanyId") Integer cooperationCompanyId);

    List<Map<String, Long>> getDeviceStatusNum(@Param("deptId") Integer deptId,@Param("cooperationCompanyId") Integer cooperationCompanyId);

    List<Map<String, Integer>> getOverviewDeptNum(@Param("deptId") Integer deptId,@Param("cooperationCompanyId") Integer cooperationCompanyId);

    /**
     * 获取今日总隐患数
     * @param deptId
     * @param cooperationCompanyId
     * @return
     */
    int getTodayYHOrderAll(@Param("deptId") Integer deptId,@Param("cooperationCompanyId") Integer cooperationCompanyId);

    /**
     * 获取今日未完成的隐患数
     * @param deptId
     * @param cooperationCompanyId
     * @return
     */
    int getTodayYHOrderUnfinished(@Param("deptId") Integer deptId,@Param("cooperationCompanyId") Integer cooperationCompanyId);
}
